package com.lin.fengxiu.sample;

import com.lin.fengxiu.sample.database.MySQL;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.validation.Valid;

/**
 * @ClassName DatabaseConfiguration
 * @Description TODO
 * @Author wushaopei
 * @Date 2021/3/8 12:53
 * @Version 1.0
 */
@Configuration
public class DatabaseConfiguration {

//    @Valid("${mysql.ip}")
    private String ip;

//    @Value("${mysql.port}")
    private Integer port;

//    @Bean
//    public IConnect mysql(){
//        return new MySQL();
//    }
}
